package com.kefu.robot.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kefu.common.service.AbstractKefuService;
import com.kefu.robot.mapper.RobotConnectRelMapper;
import com.kefu.robot.model.RobotConnectRel;

@Service
public class RobotConnectRelService extends AbstractKefuService<RobotConnectRel> {
    @Autowired
    protected RobotConnectRelMapper robotConnectRelMapper;

	
	public boolean save(RobotConnectRel model) {
		return super.save(model);
	}

	
	public RobotConnectRel update(RobotConnectRel model) {
		return super.update(model);
	}

	
	public void deleteById(String id) {
		RobotConnectRel model =
				robotConnectRelMapper.selectByPrimaryKey(id);
		super.deleteById(id);
	}

	
	public List<RobotConnectRel> getList(String tenantId) {
		RobotConnectRel param = new RobotConnectRel();
		param.setTenantId(tenantId);
		List<RobotConnectRel> result = this.robotConnectRelMapper.select(param);
		return result;
	}

}
